package com.xqb.modules.service.impl;

import com.xqb.modules.domain.po.StdPointsBoardSeason;
import com.xqb.modules.mapper.StdPointsBoardSeasonMapper;
import com.xqb.modules.service.IStdPointsBoardSeasonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 赛季积分榜Service业务层处理
 * 
 * @author xqb
 * @date 2024-10-14
 */
@Service
public class StdPointsBoardSeasonServiceImpl implements IStdPointsBoardSeasonService 
{
    @Autowired
    private StdPointsBoardSeasonMapper stdPointsBoardSeasonMapper;

    /**
     * 查询赛季积分榜
     * 
     * @param id 赛季积分榜主键
     * @return 赛季积分榜
     */
    @Override
    public StdPointsBoardSeason selectStdPointsBoardSeasonById(Long id)
    {
        return stdPointsBoardSeasonMapper.selectStdPointsBoardSeasonById(id);
    }

    /**
     * 查询赛季积分榜列表
     * 
     * @param stdPointsBoardSeason 赛季积分榜
     * @return 赛季积分榜
     */
    @Override
    public List<StdPointsBoardSeason> selectStdPointsBoardSeasonList(StdPointsBoardSeason stdPointsBoardSeason)
    {
        return stdPointsBoardSeasonMapper.selectStdPointsBoardSeasonList(stdPointsBoardSeason);
    }

    /**
     * 新增赛季积分榜
     * 
     * @param stdPointsBoardSeason 赛季积分榜
     * @return 结果
     */
    @Override
    public int insertStdPointsBoardSeason(StdPointsBoardSeason stdPointsBoardSeason)
    {
        return stdPointsBoardSeasonMapper.insertStdPointsBoardSeason(stdPointsBoardSeason);
    }

    /**
     * 修改赛季积分榜
     * 
     * @param stdPointsBoardSeason 赛季积分榜
     * @return 结果
     */
    @Override
    public int updateStdPointsBoardSeason(StdPointsBoardSeason stdPointsBoardSeason)
    {
        return stdPointsBoardSeasonMapper.updateStdPointsBoardSeason(stdPointsBoardSeason);
    }

    /**
     * 批量删除赛季积分榜
     * 
     * @param ids 需要删除的赛季积分榜主键
     * @return 结果
     */
    @Override
    public int deleteStdPointsBoardSeasonByIds(Long[] ids)
    {
        return stdPointsBoardSeasonMapper.deleteStdPointsBoardSeasonByIds(ids);
    }

    /**
     * 删除赛季积分榜信息
     * 
     * @param id 赛季积分榜主键
     * @return 结果
     */
    @Override
    public int deleteStdPointsBoardSeasonById(Long id)
    {
        return stdPointsBoardSeasonMapper.deleteStdPointsBoardSeasonById(id);
    }
}
